public class Test<T> {
    String name;
    int age;

  public  final void func1(T age,T age2){

      T a=age;
      age=age2;
      age2=a;
      System.out.println(age);
      System.out.println(age2);

  }

    public static void main(String[] args) {
        Test<Integer> test=new Test();
        Integer a=1;
        Integer b=2;


        test.func1(a,b);
        System.out.println(a);
        System.out.println(b);
    }
}
